<template>
  <div id="app">
   <supermarkethead></supermarkethead>
   <keep-alive :include="cashviews">
   <router-view></router-view>
  </keep-alive>
  
   <supermarketfoot></supermarketfoot>
  </div>
</template>
<script>
import supermarkethead from '@/components/common/head/header'
import supermarketfoot from '@/components/common/foot/footer'
import register from '@/views/register'

export default {
    name:'App',
    components: {
          supermarkethead,
          supermarketfoot,
        //  register,
        },
        data() {
          return {
            cashviews:[   'homepage']
          }
        },
        beforeCreate(){
          this.$store.dispatch('dynamicrouter/getneedLoginRouterList')
        },
        created(){
          // alert(JSON.stringify(this.$store.state.customer.customer))
           this.$store.dispatch('customer/isLogin')

          
          //  alert(JSON.stringify(this.$store.state.customer.customer))
        }
}
</script>
<style>

</style>
